﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="test.aspx.vb" Inherits="ORS_Cuong.test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title></title>
</head>
<body>
<form id="Form1" runat="server" method="post">
<asp:DataGrid ID="Datagrid1" AutoGenerateColumns="false" CellPadding="3" HeaderStyle-BackColor="PapayaWhip"
 BorderWidth="5" AlternatingItemStyle-BackColor="LightGrey" 
 EditItemStyle-BackColor="Yellow" EditItemStyle-ForeColor="Black" HeaderStyle-Font-Bold="true"
 DataKeyField="User_ID" OnEditCommand="OnEdit" OnCancelCommand="OnCancel" 
  runat="server" Font-Size="12px"
 >
 <Columns>
    <asp:BoundColumn DataField="User_ID" HeaderText="ID" ReadOnly="true"></asp:BoundColumn>
    <asp:BoundColumn DataField="User_Number" HeaderText="User Number"></asp:BoundColumn>
    <asp:TemplateColumn HeaderText="User Name">
        <ItemTemplate>
            <asp:Label ID="lblUserName" runat="server" 
            Text='<%= CStr(DataBider.Eval(Container.DataItem,"User_Name")) %>'> </asp:Label>
            
        </ItemTemplate>
        <EditItemTemplate>
            <asp:TextBox ID="txtUserName" runat="server"
             Text='<%= CStr(DataBider.Eval(Container.DataItem,"User_Name")) %>' >
            
            </asp:TextBox>
        </EditItemTemplate>
    </asp:TemplateColumn>
    <asp:EditCommandColumn EditText="Edit" CancelText="Cancel" UpdateText="Update">
        
    </asp:EditCommandColumn>
 
 </Columns>



</asp:DataGrid>




</form>


</body>
</html>